fn main() {
    let mut s = String::from("111111111");

    let s1 = &s[0..5];

    //s.clear();

    let mut s:&str = "21111"; 

    println!("{}" , s1);

    println!("Hello, world!");

    let mut array:[i32;5] = [1,2,3,4,5];

    let array_slice = &array[0..2];

    for item in array_slice {
        println!("{}",item)
    }

    let array_mut = &mut array[0..2];

    for item in array_mut {
        *item = 0;
    }

    for item in array.iter() {
        println!("{}",item);
    }
}
